package com.catbad.mapper;

import com.catbad.domain.Play;
import com.catbad.domain.Room;
import java.util.List;
import java.util.Map;

public interface RoomMapper {
    int deleteByPrimaryKey(Long roomId);

    int insert(Room record);

    Room selectByPrimaryKey(Long roomId);

    List<Room> selectAll();

    int updateByPrimaryKey(Room record);

    List<Map<String, Object>> getRoomListForPage(Map<String,Object> params);

    Long getRoomTotal(Map<String,Object> params);

    List<Room> getRoomListByLimit(Map<String,Object> params);

    int saveRoom(Room room);

    Room selectByName(String roomName);

    int updateRoomNameById(Map<String,Object> params);

    int deleteRoomById(Long roomId);

    List<Map<String,Object>> selectAllMapByCid(Long cid);

}